<%%= form_for <%= item_path :instance_variable => true %> do |f| %>
  <%%= f.error_messages %>
<%- for attribute in model_attributes -%>
  <div class="field">
    <%%= f.label :<%= attribute.name %> %>
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </div>
<%- end -%>
  <div class="actions"><%%= f.submit %></div>
<%% end %>
